home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
wlib11_2.zip
/
EXAMPLES.EXE
/
EXAM42.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-13
|
883b
|
19 lines
#include "window.h"
#define NORM CREATE_VIDEO_ATTRIBUTE(black,white) /* define video
attribute */
#define BLUEONBLACK CREATE_VIDEO_ATTRIBUTE(black,blue) /* define
video attribute */
main()
{
WPOINTER w; /* pointer to a window structure */
WindowInitializeSystem(); /* system initialization function */
WindowSaveInitial(0);
w = WindowInitialize(BORDER,1,1,30,15,BLUEONBLACK,NORM,SINGLEBOX);
WindowOpen(w); /* display window on the screen */
WindowWriteString(w,"Press a key to move me",1,1);
WindowDisplay(w,1,NOEFFECT);
GET_KEY();
WindowMove(w,12,14); /* move the window to row 12, column 14 of the
screen */
}